package fatorial;

public class Sample {
	public Sample() {
		System.out.println(fatorial(5));
	}
	
	public int fatorial(int a) {
		System.out.println(a);
		return (a == 0) ? 1 : a * fatorial(a - 1);		
	}

	public static void main(String[] args) {
		new Sample();
	}
}
